//
//  UUWalletManager.h
//  UUCharterSupplier
//
//  Created by ZhangAo on 22/01/2018.
//  Copyright © 2018 UUCharter. All rights reserved.
//

#import <UUFoundation/DKBaseManager.h>
#import "UUWalletRecordModel.h"
#import "UUWalletRefundDetailModel.h"

#define GetWalletManager()          ([UUWalletManager sharedInstance])

@interface UUWalletManager : DKBaseManager

// 获取钱包记录
- (void)asyncFetchRecordsForType:(UUWalletRecordType)type
                            page:(int)page
                          length:(int)length
                   completeBlock:(void (^)(NSArray<UUWalletRecordModel *> *records, NSError *error))completeBlock;

// 提现
- (void)asyncWithdrawWithAccountType:(UUWalletAccountType)accountType
                                name:(NSString *)name
                             account:(NSString *)account
                               money:(NSUInteger)money
                            bankName:(NSString *)bankName
                         depositBank:(NSString *)depositBank
                       completeBlock:(void (^)(NSError *error))completeBlock;

// 获取提现详情
- (void)asyncFetchRecordDetailWithRecrodId:(NSNumber *)recordId
                             completeBlock:(void (^)(UUWalletRecordDetailModel *detail, NSError *error))completeBlock;

// 获取退款详情
- (void)asyncFetchRefundDetailWithRecordId:(NSNumber *)recordId
                                moneyLogId:(NSNumber *)moneyLogId
                             completeBlock:(void (^)(UUWalletRefundDetailModel *detail, NSError *error))completeBlock;

@end
